//
//  YFDatePicker.h
//  DatePickerDemo
//
//  Created by Winny Zhang on 2019/4/4.
//  Copyright © 2019 Winny Zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface YFDatePicker : UIView

/**
 日期选择器的最小年份
 */
@property (nonatomic, assign) NSInteger minimumYear;

/**
 日历选择器的最大年份
 */
@property (nonatomic, assign) NSInteger maximumYear;

/**
 选中日期回调
 */
@property (nonatomic, copy) void(^selectedDateCompletion)(NSString *year, NSString *month, NSString *day);

/**
 创建 datePicker

 @param frame frame
 @return datePicker
 */
+ (instancetype)datePickerWithFrame:(CGRect)frame;

@end

NS_ASSUME_NONNULL_END
